<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_webroot('skin/css/admin.css'); ?>">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_webroot('skin/css/main.css'); ?>">

<style>
td span {color:red;}
</style>
</head>
<body>

<div id="maincontent">
<psp:tags     htmlname='messagebox'  iconname='messagebox' />
	<div class="wrap">
	<div class="crumbs">当前位置 &gt;&gt; 网站管理 &gt;&gt; 添加分类</div>
        <hr />
	<div class="infobox">
<h3><span class="left">添加分类</span> <span style=" margin-right:15p;" class="right"><a href="<?php echo $this->_url('admin/shoparticle/categorieslist');?>">新闻分类列表</a>&nbsp;&nbsp;</span></h3>
    <div class="content2">
		<form action="<?php echo $this->_url('admin/shoparticle/categoriesadd');?>" method="post" onsubmit="return checkform();" enctype="multipart/form-data">
<table class="form-table">
			<tbody><tr>
				<td width="70px" class="left">分类名称：</td>
				<td class="left"><input type="text" style="width:200px;" value="" name="data[cat_name]" class="small-text"></td>
			</tr>
			<tr>
				<td width="70px" class="left">分类排序：</td>
				<td class="left"><input type="text" style="width:200px;" value="" name="data[sort_order]" class="small-text"></td>
			</tr>
			<tr><td colspan="2"><span class="button-container"><input type="submit" value="添加分类" name="submit" class="regular-button"></span></td></tr>
		</tbody></table>
		</form>
	  </div>
	 </div>
	</div>
</div>
<script language="JavaScript">
<!--
function checkForm() {
	var cat_name = document.getElementsByName("data[cat_name]")[0];

	if(cat_name.value=='') {
		ShowMessageBox("标题不能为空！",'0');
		return false;
	}
	return true;
}
//-->
</script>
</body>
</html>